﻿using Mohe.Scada.Util.Models;

namespace IPlugin.Attributes
{
    [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
    public class MethodAttribute : Attribute
    {
        public string Name { get; }
        public EnumProtectType ProtectType { get; }
        public string Description { get; }

        public MethodAttribute(string name, EnumProtectType protectType = EnumProtectType.ReadOnly, string description = "")
        {
            Name = name;
            ProtectType = protectType;
            Description = description;
        }
    }
}
